|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| IndexProvider.java | - | - | - | - |
|
||||||||||||||
| 1 |
package org.marketchangers.prayer.lucene;
|
|
| 2 |
|
|
| 3 |
import java.io.IOException;
|
|
| 4 |
|
|
| 5 |
import org.apache.lucene.document.Document;
|
|
| 6 |
import org.apache.lucene.index.IndexReader;
|
|
| 7 |
import org.apache.lucene.index.IndexWriter;
|
|
| 8 |
import org.apache.lucene.search.Query;
|
|
| 9 |
import org.apache.lucene.search.Searcher;
|
|
| 10 |
import org.marketchangers.prayer.PrayerRequest;
|
|
| 11 |
import org.marketchangers.prayer.PrayerRequestQuery;
|
|
| 12 |
|
|
| 13 |
/**
|
|
| 14 |
* @author <a href="mailto:jniu@wc-group.com">Jianshuo Niu</a>
|
|
| 15 |
* @author <a href="mailto:mtodd@wc-group.com">Matthew Todd</a>
|
|
| 16 |
*/
|
|
| 17 |
public interface IndexProvider { |
|
| 18 |
public IndexWriter getWriter() throws IOException; |
|
| 19 |
public IndexReader getReader() throws IOException; |
|
| 20 |
public Searcher getSearcher() throws IOException; |
|
| 21 |
|
|
| 22 |
public Document translateToDocument(PrayerRequest request);
|
|
| 23 |
public Query translateToQuery(PrayerRequestQuery query);
|
|
| 24 |
public Query translateToQuery(PrayerRequest request);
|
|
| 25 |
} |
|
| 26 |
|
|
||||||||||